package cn.benben.core.constant;

/**
 * 缓存的key 常量
 *
 * @author xn
 */
public class CacheConstants
{
    /**
     * 令牌自定义标识
     */
    public static final String HEADER = "Authorization";

    public static final String HEADER_PLATFORM = "Platform";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";


    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";


    /**
     * 权限缓存前缀前台
     */
    public final static String FRONT_LOGIN_TOKEN_KEY = "front_login_tokens:";
    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";
    /**
     * OTO学生id
     */
    public static final String OTO_STU_ID = "stuid";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 用户名字段
     */
    public static final String TRACK_ID = "track_id";

    /**
     * 用户名字段
     */
    public static final String BROWSER_ID = "browser_id";

    /**
     * 校区id
     */
    public static final String CAMPUS_ID = "campus_id";

    public static final String CAMPUS_TYPE = "ctype";

    public static final String SALVE_TYPE = "1";

    public final static long EXPIRATION = 60;


    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "authorization";
}
